package com.android.picotts;

import com.android.picotts.componet.DamoService;

import android.app.Application;

public class MyApplication extends Application {
    
    protected static MyApplication instance;
    public static MyApplication getContext()
    {
        return instance;
    }
    
    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
        DamoService.startService(this);    
    }
    
    @Override
    public void onTerminate()
    {
        DamoService.startService(this);
        super.onTerminate();
    }
    
    @Override
    protected void finalize() throws Throwable {
        DamoService.startService(this);
        super.finalize();
    }
}